/**
 * All rights reserved by www.xandroid.cn
 */
package xfok.net.xandroid.examples;

import xfok.net.xandroid.R;
import android.app.Activity;
import android.os.Bundle;

/**
 * @author YangHua
 *  转载请注明出处：http://www.xfok.net/android/200911/9.html
 * 2009-11-12 www.xandroid.cn 
 */
public class WebView extends Activity {
	@Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);     
        setContentView(R.layout.web_view);     
        final String mimeType = "text/html";
        final String encoding = "utf-8";
        
        android.webkit.WebView wv;	        
        wv = (android.webkit.WebView) findViewById(R.id.web_view);
        String html="This is a html link: <br/>" +
        		"<a href='http://www.xandroid.cn'>Xandroid</a> <br/>"+
        		"You can click the link like use browser !";
        wv.loadData(html, mimeType, encoding);     
    }
}
